package myky.com.doctorapp.model;

import java.util.HashMap;

import io.reactivex.Observable;
import myky.com.doctorapp.api.ApiManager;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.contract.DoctoeTeamContract;
import myky.com.doctorapp.entity.DoctorTeamEntity;
import myky.com.doctorapp.utils.RequestBodyBuilder;

public class DoctoeTeamModel implements DoctoeTeamContract.Model {
    @Override
    public Observable<BaseEntity<DoctorTeamEntity>> getDoctorTeamInfo(String version, String id) {

        RequestBodyBuilder.Builder builder=new RequestBodyBuilder.Builder();

        builder.params("version",version).params("id",id);

        HashMap<String, String> hashMap = builder.getMap();
        return ApiManager.getApistore().getDoctorTeamInfo(hashMap);
    }
}
